
import store from '@/store/store'
import layout from '../components/layout.vue'

export default [
    {
        path: '/productManage',
        name: 'productManage',
        component: layout,
        children: [
            {
                path: '/productManage/labelPrinting',
                name: 'labelPrinting',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/labelPrinting/index.vue'),
            },
            {
                path: '/productManage/moldinstallationRecord',
                name: 'moldinstallationRecord',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/moldinstallationRecord/index.vue'),
            },
            {
                path: '/productManage/boxItemCodeBinding',
                name: 'boxItemCodeBinding',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/boxItemCodeBinding/index.vue'),
            },
            {
                path: '/productManage/machineAdjustmentRecord',
                name: 'machineAdjustmentRecord',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/machineAdjustmentRecord/index.vue'),
            },
            
            {
                path: '/productManage/materialOperation',
                name: 'materialOperation',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/materialOperation/index.vue'),
            },
            {
                path: '/productManage/abnormalShutdown',
                name: 'abnormalShutdown',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/abnormalShutdown/index.vue'),
            },
            {
                path: '/productManage/clearLine',
                name: 'clearLine',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/clearLine/index.vue'),
            },
            {
                path: '/productManage/rework',
                name: 'rework',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/rework/index.vue'),
            },
            {
                path: '/productManage/productionReportingRecords',
                name: 'productionReportingRecords',
                meta: {
                    title: store.state.title,
                    keepAlive: true,
                },
                component: () => import('../views/productManage/productionReportingRecords/index.vue'),
            },
            {
                path: '/productManage/productionReportingRecords/detail',
                name: 'reportingDetail',
                meta: {
                    title: store.state.title,
                },
                component: () => import('../views/productManage/productionReportingRecords/reportingDetail.vue'),
            },
            {
                path: '/productManage/productionTraceability',
                name: 'productionTraceability',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/productionTraceability/index.vue'),
            },
            {
                path: '/productManage/shutdownReasons',
                name: 'shutdownReasons',
                meta: {
                    title: store.state.title
                },
                component: () => import('../views/productManage/shutdownReasons/index.vue'),
            },
            //自检报废记录
            {
                path: '/productManage/selfCheckScrapRecord',
                name: 'selfCheckScrapRecord',
                meta: {
                  title: store.state.title
                },
                component: () => import('../views/productManage/selfCheckScrapRecord/index.vue'),
            },
            {
                path: '/productManage/selfCheckScrapRecordDetail',
                name: 'selfCheckScrapRecordDetail',
                meta: {
                  title: store.state.title
                },
                component: () => import('../views/productManage/selfCheckScrapRecord/detail.vue'),
            },
            {
                path: '/productManage/materialHeadandTail',
                name: 'materialHeadandTail',
                meta: {
                  title: store.state.title
                },
                component: () => import('../views/productManage/materialHeadandTail/index.vue'),
            },
        ]
    },
]